<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Let's eat</title>
        <link rel="stylesheet" type="text/css" href="<?= BASE_URL; ?>/source/style.css">
        <link rel="shortcut icon" href="<?= BASE_URL; ?>source/img/Food-32.png" type="image/png" />
        <script type="text/javascript" src="<?= BASE_URL; ?>source/jquery.js"></script>
        <script type="text/javascript" src="<?= BASE_URL; ?>source/source.js"></script>
        <? if (isset($user_info['admin']) && $user_info['admin'] == 1): ?>
            <script type="text/javascript" src="<?= BASE_URL; ?>source/admin_actions.js"></script>
        <? endif; ?>
        <script>
            var base_url = "<?= BASE_URL; ?>";
            $(function(){
                
            });
        </script>
    </head>
    <body class="content">
        <div class="header">
            <? if ($has_db_settings): ?>
                <? if (isset($user_info['admin']) && $user_info['id'] > 0): ?>
                    <div class="user_name"><a href="<?=BASE_URL;?>?me=1"><?= $user_info['name']; ?></a> <span id="exit_button">выход</span></div>
                <? else: ?>
                    <div class="enter_button">Вход с паролем</div>
                    <div class="enter_form">
                        <form id="login_form" action="<?= BASE_URL; ?>" method="post">
                            <table>
                                <tr>
                                    <td>Логин:</td>
                                    <td><input type="text" name="login" value="" /></td>
                                    <td><input type="checkbox" id="showpass" title="Показать пароль" /></td>
                                    <td>Пароль:</td>
                                    <td>
                                        <input type="hidden" class="pass_val" name="password" id="password" value="" />
                                        <input type="password" class="pass_val" id="password_hidden" value="" />
                                        <input type="text" class="pass_val" id="password_open" value="" style="display: none;" />
                                    </td>
                                    <td><input type="submit" value="Вход / Регистрация" /></td>
                                </tr>
                            </table>

                        </form>
                    </div>  
                <? endif; ?>
            <? endif; ?>
        </div>
        <div class="main">